package com.tim.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 作者：Tim
 * 时间：2021/4/25 16:32
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Plot {
    private Integer id;
    private String plotNum;
    private String plotName;
    private String plotLocation;
    private Double plotArea;
    private Integer buildNum;
    private Integer familyNum;
    private Double greenRate;
    private String image;
    private String developer;
    private String tenementName;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date datecreated;
    private Integer status;
    @JsonIgnore
    private String file;

    public Plot(Integer id, String plotNum, String plotName, String plotLocation, Double plotArea, Integer buildNum, Integer familyNum, Double greenRate, String image, String developer, String tenementName, Date datecreated, Integer status) {
        this.id = id;
        this.plotNum = plotNum;
        this.plotName = plotName;
        this.plotLocation = plotLocation;
        this.plotArea = plotArea;
        this.buildNum = buildNum;
        this.familyNum = familyNum;
        this.greenRate = greenRate;
        this.image = image;
        this.developer = developer;
        this.tenementName = tenementName;
        this.datecreated = datecreated;
        this.status = status;
    }
}
